package com.bsj.power.common.config.mybatis;

import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/***
 * @description MybatisPlusConfig
 * @author LiJiaXin
 * @version 1.0.0
 * @time 2024/2/21 12:02
 **/
@Configuration
public class MybatisPlusConfig {

    @Bean
    public PaginationInnerInterceptor paginationInnerInterceptor() {
        PaginationInnerInterceptor paginationInnerInterceptor = new PaginationInnerInterceptor();
        // 设置最大单页显示记录数
        paginationInnerInterceptor.setMaxLimit(null);
        return paginationInnerInterceptor;
    }

}
